package C05;

public class Cylinder {
    private double r;
    private double height;
    public double getR() {
        return r;
    }
    public void setR(double r) {
        this.r = r;
    }
    public double h() {
        return height;
    }

    public void s(double height) {
        this.height = height;
    }
    public double f(){
        //
        double s = 3.14 * r * r * height;
        return s;

    }
}
